//
//  FishMapViewController.h
//  HelloWordPrimer
//
//  Created by Anton Johansson on 10/5/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>
#import "FishCatchAnnotation.h";
#import "MapFlipsideVC.h"
#import "NewCatchController.h";


@interface FishMapViewController : UIViewController <CLLocationManagerDelegate,MKMapViewDelegate,
								                     FlipsideViewControllerDelegate,UISearchDisplayDelegate> {
	MKMapView *mapView;
	CLLocationManager *locationManager;
	// Work with persistenceStorage
	NSManagedObjectContext *managedObjectContext;
}


@property (nonatomic, retain) IBOutlet MKMapView *mapView;
@property (nonatomic, retain) CLLocationManager *locationManager;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;// Persistence

- (IBAction)newCatch:(id)sender;
- (IBAction)zoomToUser;
- (IBAction)showInfo; // Flipside
-(void)showCatchInfo:(id)sender;

- (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>) annotation;
@end
